<template>
    <el-container>
        <el-header>
            <el-button type="danger" @click="logout">退出</el-button>
        </el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-main>Main</el-main>
        </el-container>
    </el-container>
</template>

<script>
export default {
    methods:{
        logout(){
            window.sessionStorage.clear();
            this.$router.push("/login")
        }
    }
}
</script>

<style lang="less" scoped>
.el-header,
.el-aside{
    background-color: #2b4b6b;
}
.el-container {
    height: 100%;
}
.el-button {
    position: absolute;
    right: 10px;
    top: 10px;
}
</style>



